// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import locale from "element-ui/lib/locale/lang/zh-CN"; // lang i18n
import App from './App'
import router from './router'
import store from "./store";
import "@/permission"; // permission control
import Print from 'vue-print-nb'
import 'lib-flexible/flexible'
// import PerfectScrollbar from 'perfect-scrollbar';

// import VuePerfectScrollbar from 'vue-perfect-scrollbar'
// Vue.component("VuePerfectScrollbar",VuePerfectScrollbar)
import { TransferDom } from 'vux'

Vue.directive('transfer-dom', TransferDom)
import GeminiScrollbar from 'vue-gemini-scrollbar'
import "./utils/filters";
import { AlertPlugin } from 'vux'
Vue.use(AlertPlugin)
Vue.use(ElementUI, { locale });
import  { LoadingPlugin } from 'vux'
Vue.use(LoadingPlugin)
Vue.use(GeminiScrollbar)
Vue.use(Print)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
    router,
    store,
    components: { App },
    template: '<App/>'
})
